package core

import "context"

type ZookeeperRegistrar struct {
}

func NewZookeeperRegistrar() (*ZookeeperRegistrar, error) {
	return nil, nil
}
func (registrar *ZookeeperRegistrar) Register(ctx context.Context, node *Node) error {

	return nil
}
func (registrar *ZookeeperRegistrar) Deregister(ctx context.Context, node *Node) error {
	return nil
}

//func (adapter *ZookeeperAdapter) Close() {
//	if adapter == nil {
//		return
//	}
//
//}
//func (adapter *ZookeeperAdapter) Connect(conf *ClusterConf) (err error) {
//	fmt.Println("zookeeper connected")
//	return err
//}
//func (adapter *ZookeeperAdapter) Register(nodeName string, bindAddr string, watch RegisterWatch) (nodeId uint32, err error) {
//
//	return
//}
//
//func (adapter *ZookeeperAdapter) DeRegister() {
//
//}
//func (adapter *ZookeeperAdapter) GetNodes() (nodes []*Node, err error) {
//	return
//}
